package it.giuseppetrisciuoglio.lyrics.persistence.repository;

import java.util.List;

import it.giuseppetrisciuoglio.lyrics.persistence.entity.ParserType;
import it.giuseppetrisciuoglio.lyrics.persistence.entity.Transaction;

import org.springframework.data.jpa.repository.JpaRepository;

public interface TransactionRepository extends JpaRepository<Transaction, Long>{

	List<Transaction> findByCode(String code);
	Transaction findByCodeAndParserType(String code, ParserType parserType);
}
